package com.accesshollywood.components;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.Icon;
import javax.swing.ImageIcon;

public class IconUtil {
	public static ImageIcon createImageIcon(String path, String description){
		java.net.URL imgURL = IconUtil.class.getResource(path);
		if(imgURL != null){
			return new ImageIcon(imgURL, description);
		}else{
			System.err.println("Couldn't find file.");
			return null;
		}
	}
}
